body {
  position: relative;
  overflow-x: hidden;
  
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar {
  display: flex;
  
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
 
  
  color: white;
}

.navbar .logo {
  font-size: 1.5em;
  font-weight: bold;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .nav-links li {
  margin: 0 10px;
}

.navbar .nav-links li a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar .nav-links li a .fas {
  margin-right: 8px;
}

.navbar .hamburger {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      position: absolute;
      top: 60px;
      left: 0;
      background: rgb(2,0,36);
      background: rgb(2,0,36);
      background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(255,0,0,1) 100%);
  }

  .navbar .nav-links.active {
      top: 100px;
      display: flex;
      height: 95px;
      font-size: 20px;
      }

  .navbar .hamburger {
      display: block;
  }
}
header {
  background: rgb(2,0,36);
  background: rgb(2,0,36);
  background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(255,0,0,1) 100%);
  color: white;
  padding: 1rem;
  text-align: center;
}

.search-container {
  position: relative;
  display: inline-block;
  width: 80%;
  max-width: 500px;
  margin-top: 1rem;
}


header input {
  padding: 0.5rem;
  width: 100%;
  padding-right: 2.5rem; /* Space for the clear button */
}

#clear-btn {
  position: absolute;
  top: 50%;
  right: -3rem;
  transform: translateY(-50%);
  border: 1px black solid;
  background: none;
  color: black;
  cursor: pointer;
  font-size: 1.2rem;
}
#clear-btn:hover{
  box-shadow: 2px 2px 5px px rgba(0, 0, 0, 0.5);
}

.cart-container {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  left: 550px;
}

#cart-btn {
  
  position: relative;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.cart {
  display: none;
  position: relative;

  background-color: white;
  color: black;
  border: 1px solid #ccc;
  width: 300px;
 
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

.cart h2 {
  margin-top: 0;
}

.cart ul {
  list-style-type: none;
  padding: 0;
}

.cart ul li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cart ul li button {
  border: none;
  background: none;
  color: red;
  cursor: pointer;
}

main {
  padding: 6rem;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  
  margin: 0;
}

.product {
  border: 1px solid #ccc;
  
  border-radius: 5px;
  text-align: center;
  width: 200px;
  cursor: pointer;
}
.product img {
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1rem;
}

.product h2 {
  margin: 0.5rem 0;
}
.stars{
  color: orange;
}
.add-to-cart-btn {
  position: relative;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 700px;
  text-align: center;
}

.modal-content img {
  max-width: 50%;
  height: auto;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#modal-add-to-cart-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
}

@media screen and (max-width: 481px){
  .cart-container {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    right: 10px;
  }
 
  .search-container{
    position: relative;
    right:26px;
  }
  .product-list{
    position: relative;
    width: 100%;
    left: 80px;
    margin: 0
    
  }
  .product{
    width: 250px;
  }
  .cart-container {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    left: 0px;
  }
}
.footer-container{
  position: relative;
  bottom:0;
  margin: 0;
  text-align: center;
  background: rgb(2,0,36);
  background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(255,0,0,1) 100%);
  width: auto;
  
  
  
  z-index: 1000!important;
  
}

.socials-container{
  font-size: 35px;
}
.socials-container a{
  color: white;
}
.links-container a{
  color: white;
  
}
.socials-container a:hover{
  color: #C20D0D;
}
.links-container a:hover{
  color: #C20D0D;
}
.copyrightText{
  color: white;
}

/* End of Footer */

@media (max-width: 1200px) {
  .product-list {
      justify-content: flex-start;
  }
}

@media (max-width: 992px) {
  .product-list {
      justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .product-list {
      justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .product-list {
      justify-content: flex-start;
  }
}

@media (max-width: 400px) {
  .product-list {
      justify-content: flex-start;
  }
}